import config from "@/config";
import http from "@/utils/request";
// import qs from "qs";

export default {
	pageList: {
		url: `${config.API_URL}/sysUserRights/pageList`,
		name: "获取分页列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	list: {
		url: `${config.API_URL}/sysJurisdiction/list`,
		name: "获取不分页列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	details: {
		url: `${config.API_URL}/sysUserRights/details`,
		name: "根据id获取详情",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	save: {
		url: `${config.API_URL}/sysUserRights/save`,
		name: "更新数据",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
	delete: {
		url: `${config.API_URL}/sysUserRights/delete`,
		name: "根据id删除",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	deletes: {
		url: `${config.API_URL}/sysUserRights/deletes`,
		name: "批量删除",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
};
